const { defineConfig } = require("@vue/cli-service")

module.exports = defineConfig({
  transpileDependencies: true,
  // 禁用 ESLint
  lintOnSave: false,
  devServer: {
    port: 8080,
    proxy: {
      "/api": {
        target: "http://localhost:8000",
        changeOrigin: true,
      },
    },
  },
  // 生产环境配置
  productionSourceMap: false,
  // 静态资源路径
  publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
})

